/**
 * Created by fanweihua on 2016/12/2.
 */
import React from 'react';
import FlexHmtl from './flexHtml.js';

const Flex = React.createClass({
    getInitialState: function () {
        return {
            html: FlexHmtl.html
        };
    },
    render(){
        return (
            <div className="Z_slideIn">
                <div className="page slideIn">
                    <div className="Z_content_code">
                        <div dangerouslySetInnerHTML={{__html: this.state.html}}></div>
                    </div>
                </div>
                <div className="Z_content">
                    <div className="Z_panel-body-backgound">
                        <FlexNav></FlexNav>
                    </div>
                </div>
            </div>
        );
    }
});
module.exports = Flex;
const FlexNav = React.createClass({
    render(){
        return (
            <div className="Z_panel-body">
                <div className="page__hd">
                    <h1 className="page__title">Flex</h1>
                    <p className="page__desc">Flex布局</p>
                </div>
                <div className="page__bd page__bd_spacing">
                    <div className="weui-flex">
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                    </div>
                    <div className="weui-flex">
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                    </div>
                    <div className="weui-flex">
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                    </div>
                    <div className="weui-flex">
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                    </div>
                    <div className="weui-flex">
                        <div>
                            <div className="placeholder">weui</div>
                        </div>
                        <div className="weui-flex__item">
                            <div className="placeholder">weui</div>
                        </div>
                        <div>
                            <div className="placeholder">weui</div>
                        </div>
                    </div>
                </div>
            </div>
        );
    }
});